package uf.audit.demo.controller;

import uf.audit.tax.platform.core.annotation.Controller;
import uf.audit.tax.platform.util.Utils;
import uf.audit.tax.platform.util.Consts;
import uf.audit.tax.platform.web.UFBaseController;

@Controller(url = "/", view = Consts.VIEW_PATH + "/my")
public class IndexController extends UFBaseController {
	public static String indexPage = "/my/index";

	public void index() {
		if (Utils.isLogin(this)) {
			redirect(indexPage); // 进入主界面
		} else {
			redirect("/pub/login"); // 没有登录
		}
	}
}